
<script setup lang="ts">
import { eolink } from '@/api'
import { ref } from 'vue'
import runtime, { yc_cfg_ts } from './eolink/runtime'

const loadingRef = ref(false)

async function onclick() {
  try {
    loadingRef.value = true
    // await store.dispatch('login') && message.success('登录成功')
    // eolink.getApiGroupData({} as any)
    const res = await eolink.getApiInfo({} as any)
    const txt = runtime(res.apiInfo, yc_cfg_ts)
  } finally {
    loadingRef.value = false
  }
}
</script>

<template>
  <div>
    <a-button :loading="loadingRef" size="large" @click="onclick">
      onclick
    </a-button>
  </div>
</template>